package com.yipei.business.service;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yipei.business.domain.MlPositionShare;
import com.yipei.business.domain.MlTodayProfit;

/**
 * 今日利润Service接口
 *
 * @author yipei
 * @date 2024-12-21
 */
public interface IMlTodayProfitService extends IService<MlTodayProfit>
{
    /**
     * 查询今日利润
     *
     * @param id 今日利润主键
     * @return 今日利润
     */
    public MlTodayProfit selectMlTodayProfitById(Long id);

    /**
     * 查询今日利润列表
     *
     * @param mlTodayProfit 今日利润
     * @return 今日利润集合
     */
    public List<MlTodayProfit> selectMlTodayProfitList(MlTodayProfit mlTodayProfit);

    /**
     * 新增今日利润
     *
     * @param mlTodayProfit 今日利润
     * @return 结果
     */
    public int insertMlTodayProfit(MlTodayProfit mlTodayProfit);

    /**
     * 修改今日利润
     *
     * @param mlTodayProfit 今日利润
     * @return 结果
     */
    public int updateMlTodayProfit(MlTodayProfit mlTodayProfit);

    /**
     * 批量删除今日利润
     *
     * @param ids 需要删除的今日利润主键集合
     * @return 结果
     */
    public int deleteMlTodayProfitByIds(Long[] ids);

    /**
     * 删除今日利润信息
     *
     * @param id 今日利润主键
     * @return 结果
     */
    public int deleteMlTodayProfitById(Long id);

    void changeProfit(String tdAcc, BigDecimal profit);

    List<MlTodayProfit> tdAccListProfit(MlTodayProfit mlTodayProfit);
}
